package com.credithc.quartz.cluster;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;

public class MyJob {

	private static final Logger logger = LoggerFactory.getLogger(MyJob.class);

	public void execute(ApplicationContext context) throws Exception {
		logger.info("running ....... " + System.currentTimeMillis());
		SimpleService simpleService = context.getBean("service", SimpleService.class);
		simpleService.testMethod1();
		simpleService.testMethod2();
	}
}
